<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--响应式-->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Title</title>


    <link rel="stylesheet" href="//at.alicdn.com/t/font_960768_6ycvvns297n.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css"
          integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js"
            integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
            crossorigin="anonymous"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"
            integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
            crossorigin="anonymous"></script>
    <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"
            integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
            crossorigin="anonymous"></script>

    <script type="text/javascript">

        function change() {
            var t1 = setInterval(function () {
                var a = $("#progress").attr("aria-valuemin");
                var m = a * 1 + 5;
                $("#progress").attr("aria-valuemin", m);
                $("#progress").css("width", m + "%");
                console.log(m);
                if(m >= 100){
                    window.clearInterval(t1);
                }
            }, 1000);

        }

    </script>

</head>
<body>

<div class="container">

    <div class="row">
        <div class="col-6" style="background: red">红色</div>
        <div class="col-6" style="background: black">黑色</div>
    </div>

    <div class="row ">
        <div class="offset-md-2 col-md-4" style="background: red">红色</div>
        <div class="offset-md-2 col-md-4" style="background: black">红色</div>
    </div>
    <div class="row">
        <div class="col-4 col-md-6" style="background: green">元素</div>
    </div>
    <div class="row">
        <div style="background: yellow" class="d-sm-none d-md-none">aaa</div>
    </div>


    <table class="table table-striped table-hover table-bordered table-sm">
        <thead>
        <tr>
            <th scope="col">First</th>
            <th scope="col">Last</th>
            <th scope="col">Handle</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>Mark</td>
            <td>Otto</td>
            <td>@mdo</td>
        </tr>
        <tr class="table-warning">
            <td>Jacob</td>
            <td>Thornton</td>
            <td>@fat</td>
        </tr>
        <tr>
            <td class="table-info">Larry</td>
            <td class="table-success">the Bird</td>
            <td class="table-danger"><span class="btn btn-success btn-sm"> <i class="iconfont icon-add"
                                                                              style="color: red;font-size: 60px;"></i>  新增</span>
            </td>
        </tr>
        </tbody>
    </table>

    <div class="row">
        <button class="btn btn-primary" onclick="change()">
            改变进度
        </button>

    </div>
    <div class="progress">
        <div id="progress" class="progress-bar bg-danger" role="progressbar" style="width: 0%" aria-valuenow="0"
             aria-valuemin="0" aria-valuemax="100"></div>
    </div>


    data-options

    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
        登录按钮
    </button>

    <div class="modal" id="exampleModal">
        <div class="modal-dialog" >
            <form>
                <div class="modal-content">
                    <div class="modal-header">
                        <h4>用户登录</h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group row">
                            <label for="username" style="text-align: right" class="col-md-4 col-control-label">账号:</label>
                           <div class="col-md-8">
                               <input name="username" class="form-control" id="username" placeholder="请输入账号">
                           </div>
                        </div>

                        <!--form-control: 让当前的表单组件占满整个父容器的宽度-->
                        <div class="form-group row">
                            <label for="password"  style="text-align: right" class="col-md-4 col-control-label">密码:</label>
                            <div class="col-md-8">
                                <input name="password" class="form-control" id="password" type="password" placeholder="请输入密码">
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <input type="submit" class="btn btn-success col-md-12" value="登录">
                    </div>

                </div>
            </form>
        </div>

    </div>
</div>
</body>
</html>